<template>
	<!-- 富文本 -->
	<view class="container">
		<jinEdit :modeNum="modeNum" :html="editHtml.html" placeholder="请输入内容" @editOk="editOk" uploadFileUrl="/#"></jinEdit> 
	</view>
</template>

<script>
	import jinEdit from '../components/jin-edit/jin-edit.vue';
	import { mapGetters } from 'vuex';
	export default {
		components: {
			jinEdit
		},
		data() {
			return {
				modeNum:''
			}
		},
		onLoad:function(option){
			if(option.modeNum){
				this.modeNum = option.modeNum
				//console.log(this.modeNum)
			}
		},
		computed: {
			...mapGetters(['editHtml']),
		},
		methods: {
			// 点击发布
			editOk(res) {
				//console.log(res,88888);
			}
		}
	}
</script>

<style>
</style>
